package com.oauth2_security.exception;

import com.oauth2_security.model.RestFulVO;

public class BaseCommonException extends RuntimeException {

	private static final long serialVersionUID = 1L;
	
	private RestFulVO<Object> restFulVO;

    public RestFulVO<Object> getRestFulVO() {
        return restFulVO;
    }

    public void setRestFulVO(RestFulVO<Object> restFulVO) {
        this.restFulVO = restFulVO;
    }

    public BaseCommonException(RestFulVO<Object> restFulVO){
        super(restFulVO.getRestMsg());
        this.restFulVO = restFulVO;
    }

	public BaseCommonException() {
		super();
	}
}
